<template>
  <div class="footer-containt">
    <div class="footer-one">
      <p>诚邀优质供应商，加入好下单，与时代同轨！</p>
      <!-- <ul class="clearfix">
        <li>设计师入驻</li>
        <li>面料厂入驻</li>
        <li>服装厂入驻</li>
        <li>摄影师入驻</li>
        <li>新媒体入驻</li>
      </ul> -->
    </div>
    <div class="footer-two">
      <span>设计师入驻</span>
      <span>面料厂入驻</span>
      <span>服装厂入驻</span>
      <span>摄影师入驻</span>
      <span>新媒体入驻</span>
    </div>
    <!-- 底部logo  -->
    <div class="footer-three">
      <ul class="footer-width">
        <li>
          汇集设计
          <!-- <p class="title">汇集设计</p>
          <p class="small-title">Collect Design</p> -->
        </li>
        <li>
          备货面料
          <!-- <p class="title">备货面料</p>
          <p class="small-title">Choice Plus</p> -->
        </li>
        <li>
          联合生产
          <!-- <p class="title">联合生产</p>
          <p class="small-title">Joint Productions</p> -->
        </li>
        <li>
          一站跟单
          <!-- <p class="title">一站跟单</p>
          <p class="small-title">One-Stop Shop</p> -->
        </li>
        <li>
          快递营销
          <!-- <p class="title">快递营销</p>
          <p class="small-title">Quick Marketing</p> -->
        </li>
        <li>
          金融支持
          <!-- <p class="title">金融支持</p>
          <p class="small-title">Financial Support</p> -->
        </li>
        <li>
          培训服务
          <!-- <p class="title">培训服务</p>
          <p class="small-title">Training Services</p> -->
        </li>
      </ul>
    </div>
    <!-- 底部导航  -->
    <div class="footer-four">
      <!-- <div>
        <ul class="fl footer-nav" v-for="(menusInfo, index) in helpMenus" :style="{ 'width': `calc(1230px / ${helpMenus.length > 5 ? 5: helpMenus.length })`}" :key="index" v-if="index < 5 &&　menusInfo.childs.length > 0">
          <li class="title"><span>{{menusInfo.title}}</span></li>
          <li class="small-title" v-for="(child, index1) in menusInfo.childs" :key="index1" @click="updateFinallyInfo(child.title, index)">
            <a :href="linkUrl(child.title)" target="_blank">{{child.title}}</a>
          </li>
        </ul>
      </div> -->
      <div class="clearfix"></div>
      <!-- 二维码  -->
      <div class="icon-img">
        <span class="icon">
          <img src="../Footer/img/wechat.png" alt="">
          <span class="icon-title">微信</span>
        </span>
        <span class="icon">
          <img src="../Footer/img/microblog.jpg" alt="">
          <span class="icon-title">微博</span>
        </span>
        <span class="icon">
          <img src="../Footer/img/app.png" alt="">
          <span class="icon-title">APP</span>
        </span>
      </div>
    </div>
    <div class="footer-five">
      <div>
        友情链接：<a href="http://www.yuduhc.com" target="_blank">宇都集团</a>-<a href="http://finance.haoxiadan.cn/client/login.html" target="_blank">宇都金融</a>-<a href="http://www.ughen.com/" target="_blank">优正科技</a>-<a href="http://www.haoxiadan.cn" target="_blank">好下单</a>
      </div>
      <p style="margin: 30px auto 10px;">Chainsinn.com Inc.All Resevrved浙江好下单网络科技有限公司版权所有 隐私声明 浙ICP备16003205号-1|浙B2-20160204</p>
      <p>好下单官方邮箱：service@haoxiadan.cn</p>
    </div>
  </div>
</template>

<script>
  import { mapGetters, mapActions } from 'vuex'

  export default {
    computed: {
      ...mapGetters(['helpMenus'])
    },
    created() {
      this.fetchQueryFinallyInfo({})
    },
    methods: {
      ...mapActions(['fetchQueryFinallyInfo']),
      updateFinallyInfo(title, index) {
        if (this.linkUrl(title)) {
          this.$set(this.helpMenus[index], 'isShow', true)
        }
      },
      linkUrl(title) {
        return `#/helpCenter/${title}`
      }
    }
  }
</script>

<style lang="scss" scoped>
  @import '../../scss/_var.scss';
  .footer-containt {
    margin-top: 45px;
    border: 1px solid #d1d1d1;
    background-color: $color-white;
    .footer-width {
      width: 1230px;
      margin: 0 auto;
    }
    .footer-one {
      padding: 30px 0 40px;
      p {
        color: #212121;
        font-size: 20px;
        text-align: center;
      }
      ul {
        text-align: center;
        li {
          list-style: none;
          display: inline-block;
          margin: 40px 30px 0;
          font-size: 14px;
          text-align: center;
        }
      }
    }
    .footer-two {
      background-color: $color-main;
      font-size: 20px;
      color: $color-white;
      text-align: center;
      padding: 12px 70px;
      display: -webkit-flex; /* Safari */
      display:flex;
      justify-content:space-between;
      width: 1230px;
      min-width: 1230px;
      margin: 0 auto;
      span {
        margin: 0 20px;
      }
    }
    .footer-three {
      ul {
        padding: 30px 0;
        border-bottom: 1px solid $border-gray;
        display: -webkit-flex; /* Safari */
        display:flex;
        justify-content:space-between;
        li {
          max-width: 170px;
          // height: 40px;
          font-size: 18px;
          padding: 8px 20px;
          border:1px solid #918B8B;
          display: inline-block;
          background-repeat: no-repeat;
          // margin-right: 20px;
          .title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 10px;
          }
          .small-title {
            color: #999;
          }
          // &:nth-child(1) {
          //   width:  146px;
          //   // margin-left: 100px;
          //   background-image: url(../Footer/img/huiji.png)
          // }
          // &:nth-child(2) {
          //   width:  126px;
          //   background-image: url(../Footer/img/beihuo.png);
          // }
          // &:nth-child(3) {
          //   width:  160px;
          //   background-image: url(../Footer/img/lianhe.png);
          // }
          // &:nth-child(4) {
          //   width:  154px;
          //   background-image: url(../Footer/img/yizhan.png);
          // }
          // &:nth-child(5) {
          //   width:  160px;
          //   background-image: url(../Footer/img/kuaidi.png);
          // }
          // &:nth-child(6) {
          //   width:  170px;
          //   background-image: url(../Footer/img/jinrong.png);
          // }
          // &:nth-child(7) {
          //   width:  166px;
          //   background-image: url(../Footer/img/peixu.png);
          //   margin-right: 0;
          // }
        }
      }
    }
    .footer-four {
      padding: 30px 0 40px;
      text-align: center;
     background-color: #292728;
      .footer-nav {
        display: inline-block;
        text-align: center;
        li {
          width: 100%;
          text-align: center;
          &.title {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 20px;

            span {
              width: 50px;
              display: inline-block;
              text-align: left;
              word-break: keep-all;
              white-space: nowrap;
            }
          }
          &.small-title {
            font-size: 12px;
            color: #898989;
            margin-bottom: 10px;
            a {
              width: 50px;
              display: inline-block;
              text-align: left;
              word-break: keep-all;
              white-space: nowrap;
            }
          }
        }
      }
      .icon-img {
        margin: 30px auto 0;
        text-align: center;
        
        .icon {
          display: inline-block;
          margin: 0 73px;
          img{
            width: 70px;
            height: 70px; 
            padding: 5px;
            background: $color-white;
          }
          .icon-title {
            text-align: center;
            display: inline-block;
            width: 70px;
            margin-top: 10px;
            color: $color-white;
            letter-spacing: 8px;
            text-indent: 8px;
          }
        }
      }
    }
    .footer-five {
      background-color: #292728;
      color: $color-white;
      font-size: 14px;
      padding: 20px 0 30px;
      text-align: center;
      a {
        color: $color-white;
        font-size: 14px;
      }
    }
  }
</style>

